﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ETaskProcess extends Object
    {
        public var __value:int;
        public static const _ETaskProcessDialog:int = 1;
        public static const _ETaskProcessKill:int = 2;
        public static const _ETaskProcessDrop:int = 3;
        public static const _ETaskProcessCollect:int = 4;
        public static const _ETaskProcessDeliver:int = 5;
        public static const _ETaskProcessEscort:int = 6;
        public static const _ETaskProcessIntroduce:int = 7;
        public static const _ETaskProcessTreasure:int = 8;
        public static const _ETaskProcessExplore:int = 9;
        public static const _ETaskProcessDrama:int = 10;
        public static const _ETaskProcessCount:int = 11;
        public static const _ETaskProcessReachMap:int = 12;
        public static const _ETaskProcessGuide:int = 13;
        public static const _ETaskProcessAutoFight:int = 14;
        public static const _ETaskProcessPvp:int = 15;
        public static const _ETaskProcessNewCollect:int = 16;
        public static const _ETaskProcessFly:int = 17;

        public function ETaskProcess(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : ETaskProcess
        {
            return new ETaskProcess(param1);
        }// end function

        public static function __read(param1:SerializeStream) : ETaskProcess
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 18)
            {
                throw new MarshalException();
            }
            return ETaskProcess.convert(_loc_2);
        }// end function

    }
}
